<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
 <center>
 <form action="updateProduct.action" method="post" enctype="multipart/form-data">
   <table border=1> 
    <tr>
	    <td>ID:<input type="text" name="id" value="${product.id}" ></td>
	</tr>
	<tr>    
	    <td>name:<input type="text" name="name" value="${product.name}" ></td>
	</tr>
	<tr> <td>price:<input type="text" name="price" value="${product.price}" ></td>
	</tr>
	<tr> <td>createtime:<input type="text" name="createtime" value="<fmt:formatDate value="${product.createtime}" pattern="yyyy-MM-dd HH:mm:ss" /> " ></td>
	</tr>
     <tr> 
        <td>pic: 
            <c:if test="${product.pic!=null}" >
               <img src="/pic/${product.pic}"  width=100  height=100/>
     
           </c:if>
           <input type="file"  name="pictureFile"/>
       </td>
	</tr>
	
	<tr> <td><input type="submit" value="修改" ></td>
    </tr>
  
    
   </table>
  </center>
  </form> 
</body>
</html>